<?php
class User_Service_RightMap
{
	public function __construct(){
		
	}
	
	public function add($row){
		$Obj = new User_Model_RightMap();
		return $Obj->add($row);		
	}
	
	/**
	 * 获取指定用户ID的 right
	 * 返回一个数组
	 */
	public static function getRightByUserid($user_id){
		$Obj = new User_Model_RightMap();
		if($user_id){
			return $Obj->getRightByUserid($user_id);
		}
		return array();
	}

	public static function deleteBy($user_id,$ur_id){	
		$Obj = new User_Model_RightMap();
		return $Obj->deleteBy($user_id,$ur_id);	
	}
}